import type { ISearchConfig } from '@/components/types'

export const searchConfig: ISearchConfig = {
  pageName: 'user',
  category: 'system',
  propItems: [
    {
      type: 'input',
      label: '账号名称',
      prop: 'username',
      placeholder: '请输入账号名称',
      isClearable: true
    },
    {
      type: 'input',
      label: '真实姓名',
      prop: 'realname',
      placeholder: '请输入真实姓名',
      isClearable: true
    },
    {
      type: 'input',
      label: '手机号码',
      prop: 'mobile',
      placeholder: '请输入手机号码',
      isClearable: true
    },
    {
      type: 'select',
      label: '状态',
      prop: 'status',
      isClearable: true,
      options: [
        {
          label: '启用',
          value: true
        },
        {
          label: '禁用',
          value: false
        }
      ]
    },
    {
      type: 'date-picker',
      label: '创建时间',
      prop: 'createAt'
    }
  ]
}
